//
//  SLEngineer.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/26.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//工程师 -> 元素
class SLEngineer: SLStaffProtocol {

    var name: String
    var kpi: Int
    var codeLines:Int = 0

    required init(name: String) {
        self.name = name
        self.kpi = Int(arc4random() % 100000)
        self.codeLines = Int(arc4random() % 500000)
    }

    func accept(visitor: SLVisitorProtocol) {
        visitor.visite(engineer: self)
    }

}
